package com.neuedu.corejava.ch7.homework3;

public class EnglishStudent extends Student {
	private double lecture;
	//演讲
	public EnglishStudent() {
		//super();
	}
	public EnglishStudent(int studentId, String name, String sex, int age, double midtermGrade, double finalExamGrade) {
		super(studentId, name, sex, age, midtermGrade, finalExamGrade);
	}
	
	public EnglishStudent(int studentId, String name, String sex, int age, double midtermGrade, double finalExamGrade,double lecture) {
		super(studentId, name, sex, age, midtermGrade, finalExamGrade);
	    this.lecture=lecture;
	}
	public double getLecture() {
		return lecture;
	}
	public void setLecture(double lecture) {
		this.lecture = lecture;
	}
	
	// 获取评定成绩
		@Override
		public double gradeAssessing() {
			double grade = lecture * 0.5 + getMidtermGrade() * 0.25 + getFinalExamGrade() * 0.25;
			return grade;
		}
	
	

}
